package com.zjl.spring.thread;

import java.util.concurrent.Callable;

/**
 * @Auther: zhuangjl
 * @Date: 2021/11/08 14:19
 */
public class ThreadTest {

    public static void main(String[] args) {

        TicketWindowRunnable task = new TicketWindowRunnable();
        Thread thread1 = new Thread(task, "售票窗口一");
        Thread thread2 = new Thread(task, "售票窗口二");
        thread1.start();
        thread2.start();

    }

    //      new Thread(() -> {
//            System.out.println(Thread.currentThread().getName()+":开始运行");
//        }).start();
}
